package com.tools.service;

import com.tools.model.entity.UserEntity;
import com.tools.model.params.UserParams;
import com.tools.security.base.AuthToken;
import org.springframework.lang.NonNull;

/**
 * @author wangminggen
 */
public interface AuthService {
    AuthToken login(UserParams loginParams);

    AuthToken buildAuthToken(@NonNull UserEntity user);

    void logout();

    void sendCode(String phone);
}
